#ifndef DA_H_
#define DA_H_

// Base address to the A/D and D/A converter
#define BASE_ADDRESS					(0x280)

//D2A Deffinitions
#define DA_LSB (BASE_ADDRESS+6)
#define DA_MSB (BASE_ADDRESS+7)
#define DA_CMD (BASE_ADDRESS)
#define DA_STATUS (BASE_ADDRESS+0x03)
#define DA_BUSY (0b00010000)
#define DA_CHANNEL (0b00000000)
#define DA_RESET (0b00100000)
#define AD_WAIT 10

void initDARegister(void);
void writeValue(float f);

#endif
